$('#add').click(function () {
        var formData = new FormData(); 
		formData.set("title",$("#title").val());
		formData.set("introduction",$("#introduction").val());
		formData.set("publisher",$("#publisher").val());
		formData.set("category",$("#category").val());
		formData.set("publishTime",$("#publish_time").val());
		formData.set("filePath", document.getElementById("file_path").files[0]);
//		formData.set("imgPath",$("#img_path").val());
	    $.ajax({
	    	  url: "/citrusmonitor/technology.do?method=add",
	        type: "post",
	        data:formData, 
	        processData:false, 
	        contentType:false,
	        dataType: "json",
	        success: function (msg) {
	            if (msg.status==1) {
	                alert("添加成功");
	                window.location.href="show.html";
	            } else {
	                alert("添加失败" );
	            }
	        },
	        error:function(){
	            alert("资源加载失败！！！");
	        }
    })
})